Skip to content

fix: ls -R hierarchy + tracking baseline + incompatible flags (#714, #561)#799

Open
pszymkowiak wants to merge 1 commit intodevelopfrom
fix/ls-recursive-hierarchy
Open

fix: ls -R hierarchy + tracking baseline + incompatible flags (#714, #561)#799
pszymkowiak wants to merge 1 commit intodevelopfrom
fix/ls-recursive-hierarchy

Conversation

@pszymkowiak
Copy link
Collaborator

Closes #714, Closes #561

Changes

  1. ls -R hierarchy (rtk ls -R flattens recursive output and loses hierarchy context #714): recursive output now shows directory structure with indentation
  2. Tracking baseline (fix: ls tracking baseline should compare against ls not ls -la #561): savings compared against plain ls (not ls -la)
  3. Incompatible flags: -1, -d, -F, -i, -p passthrough to raw ls

Before/After

BEFORE (flat):               AFTER (hierarchy):
empty-dir/                    readme.md  6B
group-a/                      empty-dir:
group-b/                      group-a:
nested/                         details.md  8B
readme.md  6B                   overview.md  11B
details.md  8B                group-b:
overview.md  11B                examples.md  9B
examples.md  9B                 overview.md  11B
overview.md  11B                nested:
notes.md  6B                      notes.md  6B

LLM comprehension test

20 ls variants tested with llama3.1:8b, phi4:14b, Claude — 100% comprehension on hierarchy.

  • 1114 tests passing
  • All 20 ls variants working (basic, sort, recursive, edge cases)
  • LLMs correctly identify file locations in recursive output

…561)

- ls -R: preserve directory hierarchy with indentation (files under their dir)
- Tracking: compare against plain ls (not ls -la) for honest savings
- Passthrough for flags incompatible with -l parser: -1, -d, -F, -i, -p

Tested with 3 LLMs (llama, phi4, claude) on 20 ls variants: 100% comprehension.

Signed-off-by: Patrick szymkowiak <patrick.szymkowiak@innovtech.eu>
@pszymkowiak pszymkowiak added bug Something isn't working effort-medium 1-2 jours, quelques fichiers filter-quality Filter produces incorrect/truncated signal labels Mar 24, 2026
@pszymkowiak
Copy link
Collaborator Author

[w] wshm · Automated triage by AI

📊 Automated PR Analysis

🐛 Type bug-fix
🟡 Risk medium

Summary

Fixes recursive ls output to display directory hierarchy with indentation instead of flat listing, changes the tracking baseline to compare against plain ls rather than ls -la, and adds passthrough for flags incompatible with the -l parser (-1, -d, -F, -C, -m, -x, -i, -p).

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Linked issues: #714, #561


Analyzed automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working effort-medium 1-2 jours, quelques fichiers filter-quality Filter produces incorrect/truncated signal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants